﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucCustomerMemo.ascx.cs" Inherits="QuickDev.Web.App.controls.ucCustomerMemo" %>

<QuickDev:Label ID="lblReturnOrderStatus" runat="server" CssClass="label" />
<asp:DropDownList ID="ddlReturnOrderStatuses" runat="server" OnSelectedIndexChanged="ddlReturnOrderStatus_SelectedIndexChanged"
    AutoPostBack="true" CssClass="dropdownlist" />
&nbsp;&nbsp;&nbsp;&nbsp;
<QuickDev:Button ID="btnSaveMemo" runat="server" CssClass="button" OnClick="btnSaveMemo_Click" />
<QuickDev:Button ID="btnRefresh" runat="server" CssClass="button" OnClick="btnRefresh_Click" />

<FCKeditorV2:FCKeditor ID="txtLogSummary" BasePath="~/FCKeditor/" runat="server"
    Height="150px" Width="100%" UseBROnCarriageReturn="true" ToolbarStartExpanded="false"/>
<QuickDev:DataGrid ID="dgCustomerMemos" runat="server" AutoGenerateColumns="false" SkinID="adminDataGridNoPage" DataKeyField="Id" >
    <Columns>
        <asp:BoundColumn DataField="CreatedOn" />
        <asp:TemplateColumn ItemStyle-HorizontalAlign="center">
            <ItemTemplate>
                <%# FetchUpdatedByText( Eval( "CreatedBy" ).ToString() )%>
            </ItemTemplate>
        </asp:TemplateColumn>
        <asp:BoundColumn DataField="Memo" ItemStyle-Width="75%" />
        <asp:TemplateColumn ItemStyle-HorizontalAlign="center">
            <ItemTemplate>
                <QuickDev:LinkButton ID="lbDelete" runat="server" CommandArgument='<%# Eval("Id") %>'
                    OnCommand="lbDelete_Click" CausesValidation="false" />
            </ItemTemplate>
        </asp:TemplateColumn>
    </Columns>
</QuickDev:DataGrid>